﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Vidh.SimplyToDo.Entities
{
    public class MemberTask : BaseEntity
    {
        [Key]
        public virtual int Id { get; set; }

        [Required]
        [StringLength(100)]
        public virtual string Title { get; set; }

        [StringLength(1000)]
        public virtual string Description { get; set; }

        [DataType(DataType.DateTime)]
        public virtual DateTime? StartDate { get; set; }

        [DataType(DataType.DateTime)]
        public virtual DateTime? DueDate { get; set; }

        [DataType(DataType.DateTime)]
        public virtual DateTime? CompletedDate { get; set; }

        public virtual Member User { get; set; }
    }
}
